//
//  ZLMakeView.h
//  ZLCamera
//
//  Created by 科大 on 2024/4/19.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, ZLMakeVideoStatus) {
    ZLMakeVideoStatusStart,
    ZLMakeVideoStatusRecording,
    ZLMakeVideoStatusEnd,
};

typedef void(^ZLMakePhotoCallBack)(void);
typedef void(^ZLMakeVideoCallBack)(CGFloat progress, ZLMakeVideoStatus status);

@interface ZLMakeView : UIView
/// 总时长
@property (nonatomic, assign) CGFloat videoTotalTime;
/// 当前时长
@property (nonatomic, assign, readonly) CGFloat videoCurrentTime;
/// 拍照
@property (nonatomic, copy) ZLMakePhotoCallBack makePhoto;
/// 视频
@property (nonatomic, copy) ZLMakeVideoCallBack makeVideo;

/// 取消定时器
- (void)cancelTimer;
@end

NS_ASSUME_NONNULL_END
